/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.sistemas.sse.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy;

/**
 *
 * @author laptop-w8
 */
@Entity
@Table(name = "MUSU_ADM")
@Proxy(lazy = false)
public class UsuarioAdministrativo implements Serializable {

    @Id
    @Column(name = "DNM_USUSADM")
    private String dusername;
    @Column(name = "DPASS_USUADM")
    private String dpassword;
    @Column(name = "DTIP_USUADM")
    private String dtipo;
    @OneToOne
    @JoinColumn(name = "CADMIN_DNI", referencedColumnName = "CADMIN_DNI")
    private Administrador administrador;
    @OneToOne
    @JoinColumn(name = "CJOCAA_DNI", referencedColumnName = "CJOCAA_DNI")
    private JefeOcaa jefeOcaa;
    @OneToOne
    @JoinColumn(name = "CJUB_DNI", referencedColumnName = "CJUB_DNI")
    private JefeUBienestar jefeUBienestar;

    public String getDusername() {
        return dusername;
    }

    public void setDusername(String dusername) {
        this.dusername = dusername;
    }

    public String getDpassword() {
        return dpassword;
    }

    public void setDpassword(String dpassword) {
        this.dpassword = dpassword;
    }

    public String getDtipo() {
        return dtipo;
    }

    public void setDtipo(String dtipo) {
        this.dtipo = dtipo;
    }

    public Administrador getAdministrador() {
        return administrador;
    }

    public void setAdministrador(Administrador administrador) {
        this.administrador = administrador;
    }

    public JefeOcaa getJefeOcaa() {
        return jefeOcaa;
    }

    public void setJefeOcaa(JefeOcaa jefeOcaa) {
        this.jefeOcaa = jefeOcaa;
    }

    public JefeUBienestar getJefeUBienestar() {
        return jefeUBienestar;
    }

    public void setJefeUBienestar(JefeUBienestar jefeUBienestar) {
        this.jefeUBienestar = jefeUBienestar;
    }

}
